package com.chart.chart.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chart.chart.domian.ChartConfigs;
import com.chart.chart.domian.ChartConfigsAndViewsVo;
import com.chart.chart.domian.ChartConfigsUser;
import com.chart.chart.domian.vo.ChartConfigsUserVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 用户表 数据层
 * 
 * @author ruoyi
 */
@Mapper
public interface ChartConfigsUserMapper extends BaseMapper<ChartConfigsUser>
{

    List<ChartConfigsUserVo> getListWithOutValue(ChartConfigsUserVo chartConfigsUserVo);

    List<ChartConfigsAndViewsVo> getChartsAndViews(ChartConfigsUser configsUser);

    List<ChartConfigsAndViewsVo> getChartsAndViewsBathByFileIds(@Param("ids") List<Long> ids);

    boolean scatterChartfigsUser(@Param("collect") List<ChartConfigsUser> collect);

    List<ChartConfigsAndViewsVo> getChartsAndViewsBatch(ChartConfigsAndViewsVo chartConfigsAndViewsVo);

    List<ChartConfigsAndViewsVo> getInfoByName(ChartConfigsAndViewsVo chartConfigsAndViewsVo);

    List<ChartConfigsAndViewsVo> getFiles(ChartConfigsAndViewsVo chartConfigsAndViewsVo);

    boolean updateConfigTop(ChartConfigsUser chartConfigsUser);
}
